package com.fuzamei.rent.controller;

import org.apache.log4j.Logger;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class HelloworldController {

    Logger logger = Logger.getLogger(HelloworldController.class);

    @GetMapping("hello")
    public String hello(){
        logger.info("访问了hello请求");
        return "hello world!";
    }
}
